#ifndef __UDP_DEF_H
#define __UDP_DEF_H

#include "sdk_ifs_udk_cfg.h"
typedef struct ParamCfg
{
	uint16_t Holdtime;
	uint16_t ClusterR;
	uint16_t TrackNum;
	uint16_t TrackR;
} ParamCfg_t; // 8B
typedef struct Correlation
{
	uint8_t idx1;
	uint8_t idx2;
}Correlation_t;
typedef struct Last_Dis
{
	uint16_t r;
	int16_t  x;
	int16_t  y;
}Last_Dis_Info;
/*必须保证216字节*/
typedef struct{
	uint32_t startup_flag;
	uint32_t frame_interval;
//	uint32_t coefficient0;
//	uint32_t coefficient1;
	
	uint8_t gpio_delay_sec;// 50ms*n
	uint8_t rsv[3];
	
	uint32_t triDisLevel;			// 
	uint32_t triAngle;				// 
	uint32_t powThres;				// 目标信号强度阈值，默认10000	
	
	uint8_t Nouse[76];
	uint32_t Outside_trigger_range;
	uint32_t frameDiff;
	
	struct{
		uint16_t value[28];
	}divFac;
		
	uint8_t  judgeBuff[50]; //unused
	
	uint8_t bodyInCnt;	
	uint8_t bodyInFlag;

}PARAM_RSV;

typedef struct{
	PARAM_ANA_VENUS paraANA;
	PARAM_DATAPREP  paraDataPrep;
	PARAM_ALGORITHM paraALG;
	PARAM_FUNC      paraFunc;
	PARAM_RSV       paraRSV;
}UDP_2K_t;

extern const UDP_2K_t UDP_2k_Const;

#endif

